package com.mayblackcat.amoy.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.ComponentScan;

/**
 * @MapperScan:需要放在@SpringBootApplication否则可能无效
 * @author mayblackcat
 */
@MapperScan(value = "com.mayblackcat.amoy.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
@RefreshScope
public class AmoyProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(AmoyProductApplication.class, args);
    }

}
